package com.selfdriving.activity;

import net.tsz.afinal.annotation.view.ViewInject;
import com.selfdriving.R;
import com.selfdriving.dialog.DetailsDialog;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class TravelDetailsActivity extends BaseActivity {
	@ViewInject(id = R.id.topBack, click = "topBack")
	ImageView topBack;

	@ViewInject(id = R.id.topText)
	TextView topText;

	@ViewInject(id = R.id.topRight, click = "topRight")
	Button topRight;

	@ViewInject(id = R.id.feature1, click = "feature1")
	TextView feature1;

	@ViewInject(id = R.id.btnChat, click = "btnChat")
	Button btnChat;

	private DetailsDialog detailsDialog;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.travel_details);
		topRight.setVisibility(View.GONE);
		topText.setText("活动信息");
		detailsDialog = new DetailsDialog(this);
	}

	public void topBack(View v) {
		this.finish();
	}

	public void feature1(View v) {
		detailsDialog.show();
	}
	
	public void btnChat(View v){
		Intent intent = new Intent(this,MessageActivity.class);
		startActivity(intent);
	}
}
